From: Daniel Carl <danielcarl@gmx.de>
Date: Sat, 2 Nov 2013 17:41:37 +0000 (+0100)
Subject: Fixed none remove file for editor command.
X-Git-Url: https://git.owens.tech/assets/lich_lifts_title_slice.png%20%22Lich%20Lifts%22/assets/lich_lifts_title_slice.png%20%22Lich%20Lifts%22/git?a=commitdiff_plain;h=b79c80431ef59a3325205d491c55d9e4cfd5aeb0;p=vimb.git

Fixed none remove file for editor command.
---

diff --git a/src/input.c b/src/input.c
index 5f46947..d4d40ec 100644
--- a/src/input.c
+++ b/src/input.c
@@ -18,6 +18,7 @@
  */
 
 #include "config.h"
+#include <glib/gstdio.h>
 #include "mode.h"
 #include "main.h"
 #include "input.h"
@@ -146,6 +147,7 @@ static void resume_editor(GPid pid, int status, EditorData *data)
     }
     dom_editable_element_set_disable(data->element, false);
 
+    g_unlink(data->file);
     g_free(data->file);
     g_free(data);
     g_spawn_close_pid(pid);
diff --git a/src/map.c b/src/map.c
index fe67a57..bd6ea2a 100644
--- a/src/map.c
+++ b/src/map.c
@@ -159,7 +159,7 @@ gboolean map_keypress(GtkWidget *widget, GdkEventKey* event, gpointer data)
 }
 
 /**
- * Added the given key sequence ot the key queue and precesses the mapping of
+ * Added the given key sequence to the key queue and process the mapping of
  * chars. The key sequence do not need to be NUL terminated.
  * Keylen of 0 signalized a key timeout.
  */